package com.example.orderservice.feign;

import com.example.communservice.entity.User;
import org.springframework.stereotype.Component;

@Component
public class UserFeignHystrixImpl implements UserFeign {
    @Override
    public User getUserById(Integer userId) {
        return new User(500,"已触发服务熔断，稍后再试");
    }
}
